package com.pray.praymall.auth.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * 配置视图映射
 *
 * @author 魂悸魄
 * @date 2020/9/21 14:48
 */
@Configuration
public class PraymallWebConfig implements WebMvcConfigurer {
    /**
     * 视图映射
     * @param registry 视图映射注册
     */
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
//        registry.addViewController("/login.html").setViewName("login");
        registry.addViewController("/reg.html").setViewName("reg");
    }
}
